package passworks.Gates;

import passworks.*;

public class NOT extends GateBase {

    public NOT(int id) {
        super(id);
        className = "NOT";
        
        Logger.Print(className, className, Direction.IN, ownID);
        Logger.Print(className, className, Direction.OUT, ownID);
    }

    public void SetOutputs() {
        Logger.Print(className, "SetOutputs", Direction.IN, ownID);
        /*
         * Tenyleges logika
         */
        output.get(0).SetState(
                !input.get(0).GetState()
                );

        Logger.Print(className, "SetOutputs", Direction.OUT, ownID);
    }
}
